{include file="header.html"}
<div id="rightTop">
    <p> {$lang.key}</p>
    <ul class="subnav">
        <li><span>{$lang.manage}</span></li>
        <li><a class="btn1" href="index.php?app=course&amp;act=add">{$lang.add}</a></li>
    </ul>
</div>
<div class="mrightTop">
    <div class="fontl">
        <form method="get">
            <div class="left">
                <input type="hidden" name="app" value="course" />
                <input type="hidden" name="act" value="index" />
                {$lang.title}:
                <input class="queryInput" type="text" name="title" value="{$query.title|escape}" />
                {$lang.cate}:
                <select class="querySelect" id="cate" name="cate">
                <option value="">请选择</option>
                {html_options options=$dis_cat selected=$smarty.get.cate}
                </select>
                <input type="submit" class="formbtn" value="{$lang.query}" />
            </div>
            <!--{if $filtered}-->
            <a class="left formbtn1" href="index.php?app=course">{$lang.cancel_query}</a>
            <!--{/if}-->
        </form>
    </div>
    <div class="fontr">
        {include file=page.top.html}
    </div>
    <div class="clear:both;"></div>
</div>
<div class="tdare">
    <table width="100%" cellspacing="0" class="dataTable">
        <!--{if $articles}-->
        <tr class="tatr1">
            <td width="20" class="firstCell"><input type="checkbox" class="checkall" /></td>
            <td align="left">{$lang.title}</td>
            <td>{$lang.cate}</td>
		   <td>{$lang.price}</td>
		   <td>{$lang.add_time}</td>     
		   <td>{$lang.uid}</td>  	
		   <td>{$lang.partin}</td> 
		   <td>{$lang.isopen}</td>
            <td>{$lang.sort_order}</td>
            <td>{$lang.handler}</td>
        </tr>
        <!--{/if}-->
        <!--{foreach from=$articles item=article}-->
        <tr class="tatr2">
            <td class="firstCell"><!--{if !$article.code}--><input type="checkbox" class="checkitem" value="{$article.course_id}"/><!--{/if}--></td>
            <td>{$article.name|escape}</td>
            <td>{$article.cate|escape}</td>
            <td>{$article.price|escape}</td>
            <td>{$article.add_time|date:complete}</td>
            <td>{if $article.real_name}{$article.real_name}{else}{$article.user_name|escape}{/if}</td>     
            <td>{$article.partin|escape}</td> 
             <td> 
             
                   <!-- {if $article.isopen} -->
            <img src="{res file=style/images/positive_enabled.gif}" ectype="inline_edit" fieldname="isopen" fieldid="{$article.course_id}" fieldvalue="1" title="{$lang.editable}"/>
            <!--{else}-->
            <img src="{res file=style/images/positive_disabled.gif}" ectype="inline_edit" fieldname="isopen" fieldid="{$article.course_id}" fieldvalue="0" title="{$lang.editable}"/>
            <!-- {/if} -->
             
             </td> 
            <td><span ectype="inline_edit" fieldname="sort_order" fieldid="{$article.course_id}" datatype="pint" maxvalue="255" class="editable">{$article.sort_order}</span></td>
            <td><a href="index.php?app=course&amp;act=edit&amp;id={$article.course_id}">{$lang.edit}</a>
                |
                <a href="javascript:drop_confirm('{$lang.drop_confirm}', 'index.php?app=course&amp;act=drop&amp;id={$article.course_id}');">{$lang.drop}</a></td>
        </tr>
        <!--{foreachelse}-->
        <tr class="no_data">
            <td colspan="7">{$lang.no_data}</td>
        </tr>
        <!--{/foreach}-->
    </table>
    <!--{if $articles}-->
    <div id="dataFuncs">
        <div class="pageLinks">
            {include file=page.bottom.html}
        </div>
        <div id="batchAction" class="left paddingT15">
            &nbsp;&nbsp;
            <input class="formbtn batchButton" type="button" value="{$lang.drop}" name="id" uri="index.php?app=course&act=drop" presubmit="confirm('{$lang.drop_confirm}');" />
            &nbsp;&nbsp;
            <!--<input class="formbtn batchButton" type="button" value="lang.update_order" name="id" presubmit="updateOrder(this);" />-->
        </div>
        <div class="clear:both;"></div>
    </div>
    <div class="clear"></div>
    <!--{/if}-->
</div>
{include file="footer.html"}
